package com.parenting.feign.controller;

import com.parenting.model.PlatformUserDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.FeignClientProperties;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "system-platform-server", path = "/" ,configuration = FeignClientProperties.FeignClientConfiguration.class)
public interface IFeignSystemPlatformUserController {



     @ApiOperation(value = "根据账号查询用户信息")
     @PostMapping("/api/getUser/{account}")
     PlatformUserDTO getParentUserByAccount(@PathVariable("account") String  account);


     @ApiOperation(value = "权限初始化")
     @PostMapping("/api/permission/{userId}")
     void permissionInitialization(@PathVariable("userId")String userId);


}
